package com.appbee.songs.client;

import javax.inject.Inject;
import javax.inject.Singleton;

import com.appbee.core.client.modular.IModulRegistry;
import com.appbee.core.client.modular.impl.ActivityModul;
import com.appbee.songs.client.activity.SongsListActivity;
import com.google.gwt.inject.client.AsyncProvider;

@Singleton
public class SongsListActivityModul extends ActivityModul
{
	private static final String ID = "playlist.simplelist";
	private final IModulRegistry registry;

	@Inject
	public SongsListActivityModul(	AsyncProvider<SongsListActivity> songsListProvider,
								IModulRegistry registry)
	{
		setDefaultActivty(songsListProvider);
		this.registry = registry;
	}

	public void register()
	{
		registry.register(ID, this);
	}

	@Override
	public String getName()
	{
		return "Simple playlist";
	}

	@Override
	public String getId()
	{
		return ID;
	}

}
